FROM java:8

WORKDIR /usr/local/app

VOLUME /tmp

COPY app .

RUN bash -c "mv k8s-0.0.1-SNAPSHOT.jar app.jar" \
    && bash -c "touch app.jar" \
    && bash -c "touch application.yml"

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "app.jar", "--spring.config.location=application.yml"]